package com.lanou3g.k12.mapper;

import com.lanou3g.k12.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface UserMapper {
    //通过ID删除用户
    void deleteUserById(Long id);

    //关键字查询
    List <User> findkeyword(String keyword);

    //获取用户列表
    List <User> findAllUser();

    //用户注册
    void insertUser(User user);

    //根据id批量导出数据
    List <User> findByIds(Integer[] ids);

    // 通过ID获取用户
    List <User> findUserById(Long id);

    //通过ID修改用户
    void updateUserById(@Param("id") Long id, @Param("user") User user);

    //通过ID批量删除用户
    void deleteByIds(Integer[] ids);

    User selectByPhone(String phone);

    void updatePwd(User user);

    void perfectUser(User user);

}
